home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / compulse.swf / scripts / DefineSprite_320 / frame_1 / DoAction.as
Encoding:
Text File  |  2013-04-24  |  662 b   |  27 lines

  1. onEnterFrame = function()
  2. {
  3.    if(this.hitA.hitTest(_root.ball))
  4.    {
  5.       if(_root.ball._visible == true)
  6.       {
  7.          _root.ball._visible = false;
  8.          _root.hitBomb = true;
  9.          var _loc3_ = new Sound(this);
  10.          _loc3_.attachSound("BANJO");
  11.          _loc3_.start(0,1);
  12.          i = 0;
  13.          while(i < 20)
  14.          {
  15.             shel = _root.attachMovie("starX","s" + _root.k,_root.k++);
  16.             shel._x = _root.ball._x;
  17.             shel._y = _root.ball._y;
  18.             i++;
  19.          }
  20.       }
  21.       _root.xVel = 0;
  22.       _root.yVel = 0;
  23.       _root.yVel += _root.grav;
  24.       _root.triggerStoppage();
  25.    }
  26. };
  27.